#include "Reader.h"
#include "Text.h"


void readChar(FILE* is)
{
    TextChar<15> field1;
    TextChar<15> field2;
    TextChar<15> field3;
    TextChar<15> field4;
    TextChar<15> field5;
    TextChar<15> field6;
    TextChar<15> field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    fscanf(is, "%10*[\n]");              // Go to next line.
}

void readChar(std::istream& is)
{
    TextChar<15> field1;
    TextChar<15> field2;
    TextChar<15> field3;
    TextChar<15> field4;
    TextChar<15> field5;
    TextChar<15> field6;
    TextChar<15> field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    is.ignore(10, '\n');              // Go to next line.
}


void readString(FILE* is)
{
    TextString<15> field1;
    TextString<15> field2;
    TextString<15> field3;
    TextString<15> field4;
    TextString<15> field5;
    TextString<15> field6;
    TextString<15> field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    fscanf(is, "%10*[\n]");              // Go to next line.
}

void readString(std::istream& is)
{
    TextString<15> field1;
    TextString<15> field2;
    TextString<15> field3;
    TextString<15> field4;
    TextString<15> field5;
    TextString<15> field6;
    TextString<15> field7;

    field1.read(is);
    field2.read(is);
    field3.read(is);
    field4.read(is);
    field5.read(is);
    field6.read(is);
    field7.read(is);
    is.ignore(10, '\n');              // Go to next line.
}
